<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var http = "https://192.168.4.18?limit=20&offset=0"
        // {limit:20,offset:0}
        var res = http.split("?")[1].split("&");
        console.log(res)
        var obj = {}
        res.forEach(item=>{
            var list = item.split("=")
            obj[list[0]] = Number(list[1]);
        })
        console.log(obj)
    </script>
</body>
</html>